package top.zlhy7.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Optional;

/**
 * @author renyong
 * @date 2022/5/30 14:18
 * @description 测试redisson
 */
@RestController
@RequestMapping("test")
public class TestController {
    ///**
    // * 数据源
    // */
    //@Autowired
    //private DataSource dataSource;
    ///**
    // * 数据源
    // */
    //@Autowired
    //private MyDataSourceProperties myDataSourceProperties;
    @GetMapping("test1")
    public String test1(String name){
        //System.out.println(dataSource);
        //System.out.println(myDataSourceProperties);
        return Optional.ofNullable(name).orElse("你好世界");
    }
}
